﻿<Fluent:RibbonWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
xmlns:Layout="clr-namespace:TTIServer.TTISettings.ExpressKeyLayouts"
 x:Class="TTIServer.TTISettings.MainWindow" Title="Tablet Control Panel"  Height="807.876" Left="0" 
	Icon="../Resources/MainIcon.ico"
Top="0" Loaded="wndCintiqSettings_Loaded" Unloaded="wndCintiqSettings_Unloaded" 
Closed="wndCintiqSettings_Closed" Closing="wndCintiqSettings_Closing" ResizeMode="NoResize" 
WindowStartupLocation="CenterScreen" Background="#FFE5E5E5" GlassBorderThickness="9,29,9,9" SizeToContent="WidthAndHeight" Width="713" StylusDown="RibbonWindow_StylusDown" StylusInRange="RibbonWindow_StylusInRange" StylusMove="RibbonWindow_StylusMove" StylusLeave="RibbonWindow_StylusLeave" StylusUp="RibbonWindow_StylusUp" StylusInAirMove="RibbonWindow_StylusInAirMove">

	<Window.Resources>
		<Storyboard x:Key="ScreenBlur" Name="ScreenBlurEffect">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="wndCintiqSettings">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.45"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>

	</Window.Resources>
	<Fluent:RibbonWindow.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="ContentCanvas"/>
	</Fluent:RibbonWindow.Triggers>

	<Grid Height="794" VerticalAlignment="Top" HorizontalAlignment="Left" Width="704">
		<GroupBox Name="Home" Header="Home Screen" Visibility="Hidden" HorizontalAlignment="Left" Margin="10,145,0,0" VerticalAlignment="Top" Height="486" Width="722" BorderThickness="0,0,0,0" BorderBrush="{x:Null}" Foreground="{x:Null}">
			<Grid HorizontalAlignment="Left" Height="463.04" VerticalAlignment="Top" Width="710">
				<Image x:Name="ImgImage" Margin="79,17,77,196.04"/>
				<Image x:Name="PenImage" HorizontalAlignment="Left" Height="100" Margin="35,338,0,0" VerticalAlignment="Top" Width="641" />
			</Grid>
		</GroupBox>




		<Fluent:Ribbon x:Name="TabletRibbon" IsMinimizedChanged="TabletRibbon_IsMinimizedChanged" Margin="0,0,-11,0" HorizontalAlignment="Left" Width="705" >
			<!--Backstage-->
			<Fluent:Ribbon.Menu>
				<Fluent:Backstage>
					<Fluent:BackstageTabControl>
						<Fluent:BackstageTabItem Header="Open Preferences"/>
						<Fluent:BackstageTabItem Header="Restore Preferences"/>
						<Fluent:BackstageTabItem Header="Contact"/>
						<Fluent:BackstageTabItem Header="Report/Request">
							<Fluent:BackstageTabControl>
								<Fluent:Button Header="Report Bug"/>
								<Fluent:Button Header="Request Feature"/>
								<Fluent:Button Header="Display Diagnostics" Click="DisplayDiag_Clicked"></Fluent:Button>
							</Fluent:BackstageTabControl>

						</Fluent:BackstageTabItem>
					</Fluent:BackstageTabControl>
				</Fluent:Backstage>
			</Fluent:Ribbon.Menu>
			<!--Tabs-->
			<!-- Contextual Tab Groups -->
			<Fluent:Ribbon.ContextualGroups>
				<Fluent:RibbonContextualTabGroup Header="Special Features" Visibility="Visible" x:Name="SpecialFeatures" Background="Green" BorderBrush="Green" />
				<Fluent:RibbonContextualTabGroup Header="Art Pen" Visibility="Visible" x:Name="ArtPenGroup" Background="Green" BorderBrush="Green" />
				<Fluent:RibbonContextualTabGroup Header="Grip Pen" Visibility="Visible" x:Name="GripPenGroup" Background="Gray" BorderBrush="Gray" />
				<Fluent:RibbonContextualTabGroup Header="NVIDIA" Visibility="Visible" x:Name="NVIDIAGroup" Background="Black" BorderBrush="Black" />
				<Fluent:RibbonContextualTabGroup Header="Intuos" Visibility="Collapsed" x:Name="IntuosGroup" Background="CadetBlue" BorderBrush="Black" />
			</Fluent:Ribbon.ContextualGroups>



			<!-- Need to make templates for these -->
			<Fluent:RibbonTabItem Header="Cintiq">
				<Fluent:RibbonGroupBox Name="CintiqGlobalGroup"  Header="Global Tablet Settings">
					<Fluent:DropDownButton Name="CurrentCintiq" LargeIcon="../Resources/DTKWideIcon.png" Header="No Cintiqs Detected" Margin="10,0,10,0" ToolTip="Please select a display to modify its global settings">
						<Fluent:Gallery>
							<Fluent:Button x:Name="DTK2400" Header="24HD/T" LargeIcon="../Resources/DTKWideIcon.png" Background="Transparent" BorderThickness="0">
							</Fluent:Button>
							<Fluent:Button x:Name="DTK2200" Header="22HD/T" LargeIcon="../Resources/DTKWideIcon.png" Background="Transparent" BorderThickness="0">
							</Fluent:Button>
							<Fluent:Button x:Name="DTK2100" Header="21UX DTK-2100" LargeIcon="../Resources/Cintiq21UXIcon.png" Background="Transparent" BorderThickness="0">
							</Fluent:Button>
							<Fluent:Button x:Name="DTZ1200W" Header="12WX DTZ-1200" LargeIcon="../Resources/DTZ2100Icon.png" Background="Transparent" BorderThickness="0" Visibility="Collapsed">
							</Fluent:Button>
						</Fluent:Gallery>
					</Fluent:DropDownButton>
					<!--<Fluent:ToggleButton Name="CintiqIcon"	Header="21UX Driver Mode" Visibility="Visible" LargeIcon="../Resources/Cintiq21UXIcon.png" Margin="10,0,10,0" IsEnabled="True" IsChecked="True" ToolTip="Click to Toggle Wacom Drivers or WCintqUSB Drivers"/>-->
					<!-- I need to fill this Command Button with the available Cintiq Displays -->
					<Fluent:Button x:Name="CalibrateButton" Header="Calibrate" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/crosshair2Mini.png" Click="CalibrateButton_Click" />
					<Fluent:Button x:Name="PASButton" Header="Enable Pan and Scan" LargeIcon="../Resources/NVIDIALOGOSmall.png" Click="Button_Click_1" HorizontalAlignment="Left"  />
					<Fluent:Button x:Name="button" Header="Tablet Mapping" Click="Button_Click" LargeIcon="../Resources/MonitorMappingIcon.png" HorizontalAlignment="Left" Visibility="Collapsed"/>
					<Fluent:ToggleButton x:Name="CintiqExpressPad" Header="Touch Strips" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/ExpressPadIconMini.png" Click="Ribbon_CintiqExpressTouchStrips_Click" />
					<Fluent:ToggleButton x:Name="CintiqExpressRing" Header="Touch Rings" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/Intuos4_Touchring.png" Click="Ribbon_CintiqExpressTouchStrips_Click" />
					<Fluent:ToggleButton x:Name="CintiqExpressKeys" Header="Express Keys" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/ExpressKeysButton.png" Checked="CintiqExpressKeys_Checked" Unchecked="CintiqExpressKeys_Unchecked"/>
				</Fluent:RibbonGroupBox>
				<Fluent:RibbonGroupBox x:Name="CintiqPenGlobalGroup" Header="Global Pen Settings">
					<Fluent:ToggleButton x:Name="CintiqGripPen" Header="Grip Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/miniGripPen.png"  Click="CintiqGripPen_Click" Unchecked="Pen_Unchecked" Checked="Pen_Checked" />
					<Fluent:ToggleButton x:Name="CintiqArtPen" Header="Art Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/miniArtPen.png" Click="CintiqArtPen_Click" Checked="Pen_Checked" Unchecked="Pen_Unchecked" />
					<Fluent:ToggleButton x:Name="CintiqClassicPen" Header="Classic Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/miniClassicPen.png" Click="CintiqArtPen_Click" Checked="Pen_Checked" Unchecked="Pen_Unchecked" />
					<Fluent:ToggleButton x:Name="CintiqInkPen" Header="Ink Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/InkPenIcon.png"  Checked="Pen_Checked" Unchecked="Pen_Unchecked" />
					<Fluent:ToggleButton x:Name="CintiqAirbrushPen" Header="Airbrush Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/AirbrushPenIcon.png" Checked="Pen_Checked" Unchecked="Pen_Unchecked" />
					<Fluent:ToggleButton x:Name="Cintiq24HDLensCursor" Header="Lens Cursor" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/LensCursorMiniIcon.png"/>
					<Fluent:ToggleButton x:Name="Cintiq24HDMouse" Header="Mouse" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/KC100-00.png"/>
			</Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>
            
			<Fluent:RibbonTabItem Header="Intuos" IsSelected="True">
				<Fluent:RibbonGroupBox Name="IntuosGlobalGroup" Header="Global Settings">
                    <Fluent:DropDownButton x:Name="IntuosIcon"	Header="Intuos 4 Small" Visibility="Visible" LargeIcon="../Resources/Intuos4S.png" Margin="10,0,10,0" IsEnabled="True">
                        <Fluent:Gallery>
                            <Fluent:Button x:Name="Intuos4S" Header="Intuos4 S" LargeIcon="../Resources/Intuos4S.png" Background="Transparent" BorderThickness="0">
                            </Fluent:Button>
                            <Fluent:Button x:Name="Intuos4M" Header="Intuos4 M" LargeIcon="../Resources/Intuos4MLXL.png" Background="Transparent" BorderThickness="0">
                            </Fluent:Button>
                            <Fluent:Button x:Name="Intuos4WL" Header="Intuos4 W/L" LargeIcon="../Resources/Intuos4MLXL.png" Background="Transparent" BorderThickness="0">
                            </Fluent:Button>
                            <Fluent:Button x:Name="Intuos4L" Header="Intuos4 L" LargeIcon="../Resources/Intuos4MLXL.png" Background="Transparent" BorderThickness="0">
                            </Fluent:Button>
                            <Fluent:Button x:Name="Intuos4XL" Header="Intuos4 XL" LargeIcon="../Resources/Intuos4MLXL.png" Background="Transparent" BorderThickness="0">
                            </Fluent:Button>


                        </Fluent:Gallery>

                    </Fluent:DropDownButton>
                    <Fluent:ToggleButton x:Name="IntuosTouchRing" Header="Touch Ring" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/ExpresspadIconMini.png"/>
					<Fluent:ToggleButton x:Name="IntuosExpressKeys" Header="Express Keys" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/Intuos4S_EKs_IconSmall.png" />
                    <Fluent:ToggleButton x:Name="IntuosGripPen" Header="Grip Pen" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/miniGripPen.png"></Fluent:ToggleButton>
                    <Fluent:ToggleButton x:Name="IntuosArtPen" Header="Art Pen" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/miniArtPen.png" ></Fluent:ToggleButton>
					<Fluent:ToggleButton x:Name="IntuosClassicPen" Header="Classic Pen" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/miniClassicPen.png" />
                    <Fluent:ToggleButton x:Name="IntuosMouse" Header="Mouse Cursor" Visibility="Visible" Margin="10,0,10,0" LargeIcon="../Resources/KC100-00.png"/>
                    <Fluent:ToggleButton x:Name="IntuosLensCursor" Header="Lens Cursor" Visibility="Collapsed" Margin="10,0,10,0" LargeIcon="../Resources/LensCursorMiniIcon.png"/>

                </Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>
			<Fluent:RibbonTabItem Header="Application">
				<Fluent:RibbonGroupBox Header="Application Settings">
					<Fluent:InRibbonGallery  Orientation="Horizontal" MinItemsInDropDownRow="8">
						<Image Source="../Resources/ApplicationIcon.png" Stretch="None"/>
						<Image Source="../Resources/Add.png" Width="48" Stretch="Uniform"/>
						<Image Source="../Resources/Add.png" Width="48"  Stretch="Uniform"/>
					</Fluent:InRibbonGallery>
				</Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>
			
			
			
			<!--Contextual Tabs-->
			<Fluent:RibbonTabItem Header="MIDI Features">
				<Fluent:RibbonGroupBox Header="MIDI Controller Options">
					<Image Source="../Resources/LargeArtPen2.png"/>
					<Button Content="View Pen Rotation" VerticalAlignment="Top" Click="Button_Click_2" Height="26" HorizontalAlignment="Left" Width="144"/>
					<Fluent:Button Content="Pen Rotation Settings"></Fluent:Button>
				</Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>			
			<Fluent:RibbonTabItem Header="Art Pen" >
				<Fluent:RibbonGroupBox Header="Art Pen Specific Options">
					<Image Source="../Resources/LargeArtPen2.png"/>
					<Button Content="View Pen Rotation" VerticalAlignment="Top" Click="Button_Click_2" Height="26" HorizontalAlignment="Left" Width="144"/>
					<Fluent:Button Content="Pen Rotation Settings"></Fluent:Button>
				</Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>
			<Fluent:RibbonTabItem Header="Grip Pen"/>
			<!--<Fluent:RibbonTabItem Header="NVIDIA" Visibility="Collapsed">
				<Fluent:RibbonGroupBox Header="NVIDIA Specific Features">
					<Fluent:Button x:Name="PASButton" Header="Enable Pan and Scan" Click="Button_Click_1" HorizontalAlignment="Left"  />
					<Fluent:Button x:Name="MosaicButton" Visibility="Collapsed" Header="Mosaic Settings" LargeIcon="../Resources/NVIDIALOGOSmall.png" Click="Button_Click_1" HorizontalAlignment="Left" />
					<Fluent:Button x:Name="button" Header="Change Screen Mapping" Click="Button_Click" HorizontalAlignment="Left" />
				</Fluent:RibbonGroupBox>
			</Fluent:RibbonTabItem>-->
			<Fluent:RibbonTabItem Header="Options" />



		</Fluent:Ribbon>

		<Canvas Name="ContentCanvas"  Height="651" Margin="0,135,32,-2" VerticalAlignment="Top" Width="704">

			<Layout:DTK2100EK x:Name="PenCanvas2100K" Width="704" ></Layout:DTK2100EK>
			
		</Canvas>



	</Grid>
</Fluent:RibbonWindow>
